<?php
/**
	素材详情页的下载 充值 按钮
**/
require_once(dirname(__FILE__)."/../include/common.inc.php");
require_once(DEDEINC."/memberlogin.class.php");

$ml = new MemberLogin();
$mid = $ml->M_ID;

/**留言反馈***/
if($ml->M_ID==0)
{
	echo "document.getElementById('ibuy').innerHTML=\"<a data-pop='liuyan'>充值赞助 ☆ 获得金币 ☆ 点击进入</a>\";";
	echo "document.getElementById('topbuy').innerHTML=\"<a data-pop='liuyan'>充值赞助</a>\";";
	echo "document.getElementById('fmsgtitle').innerHTML=\"请登录后操作\";";
	echo "document.getElementById('liuyancont').innerHTML=\"<form name='userlogin' onsubmit='return liuyanlogin();' method='POST'><div class='login'><input type='hidden' name='fmdo1' value='ajaxlogin' /><input type='hidden' name='dopost1' value='send' /><input type='hidden' name='keeptime1' value='604800' /><ul class='arc-loginlist'><li class='uname'><input type='text' name='userid1' class='input_n' placeholder='请输入用户名' /><a href='".$cfg_memberurl."/reg_new.php' target='_blank'>注册新用户</a></li><li class='pwd'><input type='password' name='pwd1' class='input_o' placeholder='请输入密码' /><a href='".$cfg_memberurl."/resetpassword.php' target='_blank'>忘记密码?</a></li></ul></div><div class='pop-sub'><button type='submit' class='popup-ok arc-loginBtn'>登录</button></div><div class='arc-login-hzzh'><p>使用合作帐号登录</p><a href='".$cfg_cmsurl."/qqLogin/' class='login-qq' target='_blank'><img src='".$cfg_cmsurl."/images/qq_login.png' style='width:120px;' /></a></div></form>\";";
}
else
{
	echo "document.getElementById('ibuy').innerHTML=\"<a href='$cfg_memberurl/buy.php' target='_blank'>充值赞助 ☆ 获得金币 ☆ 点击进入</a>\";";
	echo "document.getElementById('topbuy').innerHTML=\"<a href='$cfg_memberurl/buy.php' target='_blank'>充值赞助</a>\";";
	echo "document.getElementById('fmsgtitle').innerHTML=\"反馈/在线客服\";";
	echo "document.getElementById('liuyancont').innerHTML=\"<form method='post' action='".$cfg_cmsurl."/i/fankui.php' name='form1'><input type='hidden' name='type' value='fankui' /><div class='login liuyan'><p><span class='float_l'>".$ml->M_UserName."，您好：</span></p><p>我们非常重视您的反馈，您将很快收到我们的回复。<a href='".$cfg_memberurl."/pm.php' target='_blank'>查看回复</a></p><ul class='arc-loginlist'><li class='uname'><textarea name='conte' placeholder='留言内容' class='srk' required='required'></textarea></li><li class='pwd'><input type='text' name='contesfs' class='input' placeholder='联系方式' required='required' /><span class='lxlx'><i>类型：</i><label><input type='radio' name='lxlx' value='QQ' checked='checked' /> QQ</label><label><input type='radio' name='lxlx' value='手机' /> 手机</label><label><input type='radio' name='lxlx' value='邮箱' /> 邮箱</label></span></li></ul></div><div class='pop-sub'><button type='submit' class='popup-ok arc-loginBtn'>提交</button></div><div class='arc-login-hzzh'><p>在线客服：周一至周六 9:30-18:00</p><a href='http://wpa.qq.com/msgrd?v=3&uin=".$QQ."&site=qq&menu=yes' class='login-qq' target='_blank'><img src='".$cfg_cmsurl."/images/qq-zixun.png' style='width:77px;' /></a></div></form>\";";
}
/**留言反馈结束***/

?>